home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / resources / disk.h < prev    next >
C/C++ Source or Header  |  1989-11-09  |  2KB  |  59 lines

  1. #ifndef    RESOURCES_DISK_H
  2. #define    RESOURCES_DISK_H
  3. #ifndef    EXEC_TYPES_H
  4. #include    "exec/types.h"
  5. #endif    /* !EXEC_TYPES_H */
  6. #ifndef    EXEC_LISTS_H
  7. #include    "exec/lists.h"
  8. #endif    /* !EXEC_LISTS_H */
  9. #ifndef    EXEC_PORTS_H
  10. #include    "exec/ports.h"
  11. #endif    /* !EXEC_PORTS_H */
  12. #ifndef    EXEC_INTERRUPTS_H
  13. #include    "exec/interrupts.h"
  14. #endif    /* !EXEC_INTERRUPTS_H */
  15. #ifndef    EXEC_LIBRARIES_H
  16. #include    "exec/libraries.h"
  17. #endif    /* !EXEC_LIBRARIES_H */
  18. struct    DiscResourceUnit    {
  19. struct    Message    dru_Message;
  20. struct    Interrupt    dru_DiscBlock;
  21. struct    Interrupt    dru_DiscSync;
  22. struct    Interrupt    dru_Index;
  23. };
  24. struct    DiscResource    {
  25. struct    Library    dr_Library;
  26. struct    DiscResourceUnit    *dr_Current;
  27. UBYTE    dr_Flags;
  28. UBYTE    dr_pad;
  29. struct    Library    *dr_SysLib;
  30. struct    Library    *dr_CiaResource;
  31. ULONG    dr_UnitID[4];
  32. struct    List    dr_Waiting;
  33. struct    Interrupt    dr_DiscBlock;
  34. struct    Interrupt    dr_DiscSync;
  35. struct    Interrupt    dr_Index;
  36. };
  37. #define    DRB_ALLOC0    0L
  38. #define    DRB_ALLOC1    1L
  39. #define    DRB_ALLOC2    2L
  40. #define    DRB_ALLOC3    3L
  41. #define    DRB_ACTIVE    7L
  42. #define    DRF_ALLOC0    (1L<<0)
  43. #define    DRF_ALLOC1    (1L<<1)
  44. #define    DRF_ALLOC2    (1L<<2)
  45. #define    DRF_ALLOC3    (1L<<3)
  46. #define    DRF_ACTIVE    (1L<<7)
  47. #define    DSKDMAOFF    0x4000L
  48. #define    DISKNAME    "disk.resource"
  49. #define    DR_ALLOCUNIT    (LIB_BASE    -    0*LIB_VECTSIZE)
  50. #define    DR_FREEUNIT    (LIB_BASE    -    1*LIB_VECTSIZE)
  51. #define    DR_GETUNIT    (LIB_BASE    -    2*LIB_VECTSIZE)
  52. #define    DR_GIVEUNIT    (LIB_BASE    -    3*LIB_VECTSIZE)
  53. #define    DR_GETUNITID    (LIB_BASE    -    4*LIB_VECTSIZE)
  54. #define    DR_LASTCOMM    (DR_GIVEUNIT)
  55. #define    DRT_AMIGA    (0x00000000L)
  56. #define    DRT_37422D2S    (0x55555555L)
  57. #define    DRT_EMPTY    (0xFFFFFFFFL)
  58. #endif
  59.